package controller;

import java.util.List;
import java.util.ArrayList;

import model.Professor;


public class Sistema {
	
	List<Professor> professores = new ArrayList<Professor>();
	
	public static Sistema instance = new Sistema();
	
	public Sistema(){
		
	}
	
	public static String retornaDataSql(String[] data){
		String date = "";
		if(data[1].equalsIgnoreCase("jan"))
			date += "01";
		else if (data[1].equalsIgnoreCase("feb"))
			date += "02";
		else if (data[1].equalsIgnoreCase("mar"))
			date += "03";
		else if (data[1].equalsIgnoreCase("apr"))
			date += "04";
		else if (data[1].equalsIgnoreCase("may"))
			date += "05";
		else if (data[1].equalsIgnoreCase("jun"))
			date += "06";
		else if (data[1].equalsIgnoreCase("jul"))
			date += "07";
		else if (data[1].equalsIgnoreCase("aug"))
			date += "08";
		else if (data[1].equalsIgnoreCase("sep"))
			date += "09";
		else if (data[1].equalsIgnoreCase("oct"))
			date += "10";
		else if (data[1].equalsIgnoreCase("nov"))
			date += "11";
		else if (data[1].equalsIgnoreCase("dec"))
			date += "12";
		date += "/" + data [2] + "/" + data[5];
		
		return date;
	}
	
	public static String dataNormalParaSql(String[] data)
	{
		return data[2]+"/"+data[1]+"/"+data[0];
	}
	
}
